﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

using KCL.Code.Data;

namespace KCL.Code.Business
{
    public class ColorServices
    {
        public static List<Color> GetAllColors()
        {
            return (new ColorDAO()).GetAllColors();
        }

        public static bool Insert(Color c)
        {
            return (new ColorDAO()).Insert(c);
        }

        public static bool Update(Color c)
        {
            c.isActive = true;
            return (new ColorDAO()).Update(c);
        }

        public static bool Delete(Color c)
        {
            return (new ColorDAO()).Delete(c);
        }
    }
}